package lab02.test07;

/**
 * Created by lady on 2017/10/18.
 */
public class Student extends Person{
    //属性：具有属性人名、年龄、身份证号还有学号，所在学校
    String sno;
    String university;

    //行为：将属性信息作为字符串返回
    //ctrl+o
    //student->person—>object

    String getString(){
        return name+"|"+age+"|"+idcard+"|"+sno+"|"+university;
    }
    //构造函数
    }

